/**
 * Created by zhaomi on 16/5/20.
 */
var async = require('async')
var x=1
async.waterfall([
    function(callback) {
        callback(null, 'one', 'two');
    },
    function(arg1, arg2, callback) {
        // arg1 now equals 'one' and arg2 now equals 'two'
        callback(null, 'three');
    },
    function(arg1, callback) {
        // arg1 now equals 'three'
        console.log(arg1)
        setTimeout(function () {

        },10000)
        callback(null, 'done');
    }
], function (err, result) {
    // result now equals 'done'
    console.log(result)
});